package hexui;

import hexgame.GameState;
import hexgame.HexMove;
import hexui.components.BoardUI;

import javax.swing.JFrame;

public class GameObserverWindow extends JFrame {

	BoardUI boardUI;
	GameState gameState;

	public GameObserverWindow(GameState gameState, ObservingPlayer observingPlayer) {
		this.boardUI = new BoardUI(gameState);
		this.gameState = gameState;
		this.setSize((gameState.getBoardSize() + 2) * 74 + 50, (gameState.getBoardSize() + 2) * 45 + 50);
		this.add(boardUI);
		this.setVisible(true);
		this.setResizable(false);
	}

	public void showMove(HexMove move) {
		boardUI.showMove(move);
	}
}
